Version

Contains(String,Nullable<Boolean>) Method

Determines if the field has an associated FieldSortDescription in the collection.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal fieldName As String, _
   ByVal isGroupBy As Nullable(Of Boolean) _
) As Boolean
public bool Contains( 
   string fieldName,
   Nullable<bool> isGroupBy
)

Parameters

fieldName
The associated field name
isGroupBy
If non-null will only return true if there is a FieldSortDescription with the matching field and IsGroupBy value in the collection.

Return Value

True if the field has an associated FieldSortDescription with the specified 'IsGroupBy' state in the collection.
Remarks

Note: the collection can now contain up to 2 instances of FieldSortDescriptions with the same field (one with its IsGroupBy set to true and the other with its IsGroupBy set to false).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also